package org.geekbang.dbexcel.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author 孙红瑞
 * @ClassName Column.java
 * @Description 字段列相关信息
 * @createTime 2021年02月03日 15:47:00
 */
@Data
public class Column {

    //列名
    @JSONField(name="COLUMN_NAME")
    private String columnName;
    // 列备注名
    @JSONField(name="COLUMN_COMMENT")
    private String columnComment;
    //类型
    @JSONField(name="COLUMN_TYPE")
    private String columnType;
    //索引
    @JSONField(name="COLUMN_KEY")
    private String columnKey;
    //是否为空
    @JSONField(name="IS_NULLABLE")
    private String isNullable;

    @JSONField(name="TABLE_CATALOG")
    private String tableCatalog;
    @JSONField(name="TABLE_SCHEMA")
    private String tableSchema;
    @JSONField(name="TABLE_NAME")
    private String tableName;
    @JSONField(name="EXTRA")
    private String extra;

    @JSONField(name="NUMERIC_PRECISION")
    private String numericPrecision;
    @JSONField(name="PRIVILEGES")
    private String privileges;
    @JSONField(name="NUMERIC_SCALE")
    private String numericScale;
    @JSONField(name="GENERATION_EXPRESSION")
    private String generationExpression;
    @JSONField(name="ORDINAL_POSITION")
    private String ordinalPosition;
    @JSONField(name="DATA_TYPE")
    private String dataType;

}
